<template>
  <h1>子组件---{{ appInfo.id }}---{{ appInfo.name }}---{{ appInfo.age }}</h1>
</template>

<script setup>
import { inject } from 'vue'

const appInfo = inject('app_info')
console.log('子组件接收的数据',appInfo);
</script>